# Author: Wujia
# Date:week04
print("欢迎使用课表查询系统~")

# 置入vip信息
user_data_VIP = "Wujia"
user_password = "1111"
# user_data_UNVIP = "Tony","Helen"
# 会员有10次试错机会，非会员仅有5次



count = 10
count_ = 5
while True:
    #count -= 1

# 输入用户数据
    username = input("请输入您的账号:")
    password = input("请输入您的密码:")

# 判断用户
    if username == user_data_VIP:
     if username in user_data_VIP:
        if password == user_password:
            print("您好，登录成功",username,"会员，欢迎使用课表查询系统")

            day = input("请输入您要查询的星期：")
            hour = input("请输入您要查询的小时：")
            minute = input("请输入您要查询的分钟：")
            now = int(hour + minute)

            print("您查询的是星期{}的{}:{}".format(day, hour, minute))

            if day == "一":
                if 1035 < now < 1200:
                    print("羽毛球@东区体育馆")
                elif 1430 < now < 1650:
                    print("创业基础实践@1-401")
                else:
                    print("你现在没有课哦。")
            elif day == "二":
                if 1035 < now < 1200:
                    print("大学英语@10-204")
                elif 1430 < now < 1650:
                    print("网站运营与管理@3实304")
                else:
                    print("你现在没有课哦。")
            elif day == "三":
                if 1035 < now < 1200:
                    print("毛概实践@7-402")
                elif 1845 < now < 2055:
                    print("毛概理论@7-402")
                else:
                    print("你现在没有课哦。")
            elif day == "四":
                if 945 < now < 1200:
                    print("Python语言@新综612")
                elif 1430 < now < 1555:
                    print("科学技术发展史@11-401")
                elif 1610 < now < 1735:
                    print("大学英语@10-205")
                else:
                    print("你现在没有课哦。")
            elif day == "五":
                if 1035 < now < 1200:
                    print("Illustrator软件应用@新综612")
                else:
                    print("你现在没有课哦。")
            else:
                print("你已经放假啦！")
            print("FINISH")
            break

        else:
            if count == 0:
                print("您已连续输入10次，您的账号已被锁定，5min后请重试。")
                break
            else:
                count -= 1
                print(user_data_VIP,"您是会员","您的账号或密码不正确,请重新输入，您还有",count,"次机会")
    else:
        if count == 0:
            print("您已连续输入10次，您的账号已被锁定，5min后请重试。")
            break

        else:
            if count_ == 1:
                print("您已连续输入5次，账号已被锁定，5min后请重试。")
                break
            else:
                count_ -= 1
                print(username,"您是非会员","您的账号或密码不正确,请重新输入，您还有", count_, "次机会")




